package com.ph.irp.base.assistantmaterial.service;

import java.sql.SQLException;
import java.util.List;

import com.ph.exception.PHException;
import com.ph.irp.model.PBaseAssistantmaterialSuppliercategory;



public interface PBaseAssistantmaterialSuppliercategoryService {
	  /**
	   * 查询所有供应商分类信息
	   * @return
	   */
	public List<PBaseAssistantmaterialSuppliercategory> getALLAssistantmaterialSuppliercategory()throws Throwable;
	/**
	 * 删除一个或者多个供应商分类信息
	 * @param suppliercategoryId
	 */
	public void deleteAssistantmateialSuppliercategory(Object[] suppliercategoryIds)throws Throwable;
	/**
	 * 增加供应商分类信息
	 * @param suppliercategoryModel
	 */
	public void addAssistantmatteialSuppliercategory(PBaseAssistantmaterialSuppliercategory suppliercategoryModel) throws Throwable;
	/**
	 * 更新供应商分类信息
	 * @param suppliercategoryModel
	 */
	public void updateAssistantmaterialSuppliercategory(PBaseAssistantmaterialSuppliercategory suppliercategoryModel)throws Throwable;
	/**
	 * 动态查找供应商分类信息
	 * @param suppliercategoryModel
	 * @return
	 */
	public List<PBaseAssistantmaterialSuppliercategory> getAssistantmaterialSuppliercategory(PBaseAssistantmaterialSuppliercategory suppliercategoryModel)throws Throwable;
	/**
	 * 根据Id查找供应商分类信息
	 * @param suppliercategoryId
	 * @return
	 */
	public PBaseAssistantmaterialSuppliercategory getAssistantmaterialSuppliercategoryById(int suppliercategoryId)throws Throwable;
	/**
	 * 根据code查询供应商分类信息
	 * @param suppliercategoryCode
	 * @return
	 * @throws Throwable
	 */
	public List<PBaseAssistantmaterialSuppliercategory>  getAssistantmaterialSuppliercategoryByCode(String suppliercategoryCode)throws Throwable;
	/**
	 * 根据名称查询供应商分类信息
	 * @param suppliercategoryName
	 * @return
	 * @throws Throwable
	 */
	public List<PBaseAssistantmaterialSuppliercategory>  getAssistantmaterialSuppliercategoryByName(String suppliercategoryName)throws Throwable;
	/**
	 * 根据代码和名称查询供应商分类信息
	 * @param suppliercategoryCode
	 * @param suppliercategoryName
	 * @return
	 * @throws Throwable
	 */
	public List<PBaseAssistantmaterialSuppliercategory>  getAssistantmaterialSuppliercategoryByCodeAndName(String suppliercategoryCode,String suppliercategoryName)throws Throwable;

}
